home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 1694 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: news1.channel1.com!usenet
  2. From: ejack@user1.channel1.com (Eric D. Jackson)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: FlushLibs
  5. Date: 15 Feb 1996 16:27:02 GMT
  6. Organization: Channel 1 Communications
  7. Message-ID: <2242.6619T633T1605@user1.channel1.com>
  8. References: <4fuuic$a8n@news.uni-paderborn.de>
  9. NNTP-Posting-Host: remote30.channel1.com
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. >: >As the OS flushes libs automatically in low memory situations, you
  14. >: >normally only need it to see, if a program has memory leaks.
  15.  
  16. >: >Using is simple, just starting it. If i'm not wrong, it just allocates a
  17. >: >huge amount of memory. If exec can't fulfill the request, it flushes all
  18. >: >unused librarys from the system.
  19.  
  20. >: Thank you for your reply. I have another question. What is a memory leak?
  21.  
  22. >If a program allocates memory, but frees only a part of it, some amount
  23. >of memory stays allocated. To see, if you free all memory, you do the
  24. >following:
  25.  
  26. >avail flush total (Flushes everything, that is not used, and gives you
  27. >                   the total amount of free memory)
  28.  
  29. >program           (Start your program, play with it an then quit it)
  30.  
  31. >avail total flush (The same as above, there should be no difference in
  32. >                   the output).
  33.  
  34. >The reason for the flush is, if a program opens a library, the library
  35. >stays in memory, until its flushed.
  36.  
  37. >--
  38. >Mario Kemper                                magick@bundy.lip.owl.de
  39. >University of Paderborn (Germany).          magick@uni-paderborn.de
  40. >
  41.  
  42. Mario,
  43. Thank you very much for a very clear explanation! I'm guessing that the reason
  44. it's dicussed in the Thor group is because people want to flush out the socket
  45. library. Can this be done while you're online so that you are able to freely
  46. run other programs after you've flushedlibs?
  47.  
  48. Eric
  49.  
  50. **************************************************************************
  51. *                                                                        *
  52. *  Eric D. Jackson                             THOR 2.22                 *
  53. *                                                                        *
  54. *  ejack@user1.channel1.com                    Amiga 40000/040           *
  55. *                                                                        *
  56. *                     *Shapeshifter MacEmulator*                         *
  57. *                                                                        *
  58. *                         ***Jazz Lives!***                              *
  59. *                                                                        *
  60. **************************************************************************
  61.  
  62.